﻿@model EmpireDirectory.Models.Character



<h2>@Model.Name</h2>
<a class="btn btn-warning" href="/Home/Edit/@Model.ID">Edit</a>
<img src="@Model.Image" style="width:300px;" /><br />
@Html.DisplayFor(x=>x.Bio)<br />
@if (Model.GetType().ToString() == "EmpireDirectory.Models.Jedi")
 {
    @Html.Partial("_JediPartial", (EmpireDirectory.Models.Jedi)Model)
 }
else if (Model.GetType().ToString() == "EmpireDirectory.Models.BountyHunter")
{ 
    
 @Html.Partial("_BountyHunterPartial", (EmpireDirectory.Models.BountyHunter)Model)
}

